import request from "../../utils/request";

/**
 * 获取供应商所有统计数据
 * @param {*} obj
 */
export const getSupplierAllStatistics = (obj) => {
  return request({
    url: "api/wechat/GetSupplierAllStatistics",
    params: obj,
    method: "GET",
  });
};

/**
 * 供应商解除绑定
 * @param {*} obj
 */
export const supplierUnBind = (obj) => {
  return request({
    url: "api/wechat/SupplierUnBind",
    data: obj,
    method: "POST",
  });
};
/**
 * 发送短信
 * @returns
 */
export const SENDMESSAGE = (obj) => {
  return request({
    url: "api/Wechat/SendMessage",
    method: 'POST',
    data: obj
  });
}
/**
 * 获取供应商信息
 * @returns
 */
export const getSupplierInfo = (obj) => {
  return request({
    url: "api/wechat/GetSupplierInfo",
    params: obj,
    method: "GET",
  });
};


/**
 * 修改企业信息(供应商信息)
 * @param {*} obj 
 * @returns 
 */
export const updateSupplier=(obj)=>{
  return request({
    url: "api/wechat/Supplier_UpdateSupplier",
    data: obj,
    method: "POST",
  });
}

/**
 * 上传
 * @param {*} obj 
 * @returns 
 */
export const UploadSupplier = (obj) => {
  return request({
    url: "api/Resource/UploadSupplier",
    data: obj,
    method: "POST",
  });
}


/**
 * 修改账号信息
 * @param {*} obj 
 * @returns 
 */
export const updateAccount=(obj)=>{
  return request({
    url: "api/wechat/Supplier_UpdateAccount",
    data: obj,
    method: "POST",
  });
}
